package com.test.cxf.service;

import javax.jws.WebMethod;

import com.test.cxf.domain.User;

public class HelloServiceBean implements HelloService{
	
	private Service2 service2;
	
	@Override
	@WebMethod(operationName="sayHello")
	public User sayHello1(User user) {
	
		return 	service2.doMode(user);
	}
	

	/**
	 * @return the service2
	 */
	public Service2 getService2() {
		return service2;
	}

	/**
	 * @param service2 the service2 to set
	 */
	public void setService2(Service2 service2) {
		this.service2 = service2;
	}

	@Override
	public String sayHello2(String userName) {
		return "Hello "+userName;
	}

}
